package org.xxpay.core.service;

import com.alibaba.fastjson.JSONObject;
import org.xxpay.core.entity.StatisticsPayPassage;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 支付通道统计表 服务类
 * </p>
 *
 * @author xxpay generator
 * @since 2021-02-26
 */
public interface IStatisticsPayPassageService {

    List<StatisticsPayPassage> select(int pageIndex, int pageSize, StatisticsPayPassage statisticsPayPassage, JSONObject queryObj);

    long count(StatisticsPayPassage statisticsPayPassage, JSONObject queryObj);

    long count4PayPassage(Date createTimeStart, Date createTimeEnd);

    int add(StatisticsPayPassage statisticsPayPassage);

    int updateByPrimaryKey(StatisticsPayPassage statisticsPayPassage);

    StatisticsPayPassage findByPrimaryKey(Integer payPassageId, Integer payPassageAccountId, Date statisticsDate);

    List<Map> countList4PayPassage(int pageIndex, int pageSize, Date createTimeStart, Date createTimeEnd);

    long count4PayPassageAccount(Integer payPassageId, Date createTimeStart, Date createTimeEnd);

    List<Map> countList4PayPassageAccount(int pageIndex, int pageSize, Date createTimeStart, Date createTimeEnd, Integer payPassageId);

    int updateStatistics(StatisticsPayPassage updateRecord);
}
